package com.mofang.ticketing.user.client.api;

import com.mofang.ticketing.common.core.result.Result;
import com.mofang.ticketing.common.core.urls.user.account.AuthUrl;
import com.mofang.ticketing.user.client.pojo.response.AuthUserBelongMerchantRespDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * @author LGC
 */
@FeignClient(value = "ticketing-user-serve", contextId = "user")
public interface UserClient {

    /**
     * 获取认证用户所属商户
     *
     * @return
     */
    @PostMapping(value = AuthUrl.AUTH_BELONG_MERCHANTS)
    Result<List<AuthUserBelongMerchantRespDTO>> authBelongMerchants();

    /**
     * 获取认证用户所属商户ID
     *
     * @return
     */
    @PostMapping(value = AuthUrl.AUTH_BELONG_MERCHANT_IDS)
    Result<List<Long>> authBelongMerchantIds();

}
